package routers

import (
	"Doge/controllers"
	"github.com/labstack/echo/v4"
)

func DelayedRoute(e *echo.Group) error {
	var (
		delayedController *controllers.DelayedController
		err error
	)

	if delayedController, err = controllers.NewDelayedController(); err != nil {
		return err
	}

	e.GET("/:id", delayedController.GetDelayed)
	e.POST("", delayedController.SaveDelayed)


	return err
}